<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		
		<button type="primary" @click="gotoLogin">Hello</button>
		<navigator url="/pages/compos/compos">
			<button type="primary">组件展示</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		
		//---
		onLoad() {
			console.log("onLoad...");
		},
		
		onShow() {
			console.log("onShow...");
		},
		
		mounted() {
			console.log("mounted...");
		},
		
		onReady() {
			console.log("onReady...");
		},
		
		onBackPress(options) {
			console.log('from:' + options.from)
		},
		
		//---
		methods: {
			gotoLogin() {
				uni.navigateTo({
					url: "/pages/hello/hello",
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
/* 		justify-content: center; */
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 100rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}
</style>
